package com.wx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wx.mapper.PublishMapper;
import com.wx.pojo.Source;
import com.wx.pojo.SourceDetail;
import com.wx.service.PublishService;
@Service
public class PublishServiceImpl implements PublishService{

	@Autowired
	private PublishMapper publishMapper;
	/**
	 * 发布商品
	 */
	@Override
	public void insertSource(Source source) {
		// TODO Auto-generated method stub
	   publishMapper.insertSource(source);
	}
	/**
	 * 删除商品
	 */
	@Override
	public void removePublish(Integer sourceId) {
		publishMapper.removePublish(sourceId);
	}
	/**
	 * 修改发布商品
	 */
	@Override
	public void updatePublish(SourceDetail sourceDetail) {
		publishMapper.updatePublish(sourceDetail);
		
	}

}
